#pragma once


#include "MainFrm.h"
#include "afxwin.h"

// CStockOrder form view

class CStockOrder : public CFormView
{
	DECLARE_DYNCREATE(CStockOrder)

protected:
	CStockOrder();           // protected constructor used by dynamic creation
	virtual ~CStockOrder();

public:
	enum { IDD = IDD_STOCKORDER };
	CMainFrame* m_pFrame;
	BOOL	m_bOrderDone = FALSE;
	BOOL	m_bIsMonitor = FALSE;
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void OnWmReceivedata(OUTDATABLOCK* pOutData);
	void OnWmReceivesise(OUTDATABLOCK* pSiseData);
	void OnWmReceivemessage(OUTDATABLOCK* pMessage);
	void OnWmReceivecomplete(OUTDATABLOCK* pOutData);
	void OnWmReceiveerror(OUTDATABLOCK* pError);

	DECLARE_MESSAGE_MAP()
public:
	afx_msg LRESULT OnWmcaEvent(WPARAM wParam, LPARAM lParam);
	virtual void OnInitialUpdate();
	afx_msg void OnBnClickedButton1();
	CEdit m_edit_code;
	afx_msg void OnBnClickedButtonOrder();
	void CheckLogic(CString strCurrentPrice);
};


